import request from '@/utils/request'

// 查看月卡信息列表
export const carCardList = (params) => request.get('/parking/card/list', { params })

// 添加月卡信息
export const addCarCard = (data) => request.post('/parking/card', data)

// 编辑月卡信息
export const editCarCard = (data) => request.put('/parking/card/edit', data)

// 获取编辑页月卡详情
export const getCarCardDetail = (id) => request.get(`/parking/card/detail/${id}`)

// 删除月卡信息
export const deleteCarCard = (id) => request.delete(`/parking/card/${id}`)
